import { request } from "@/utils/request";
//配置
export function reqConfig() {
	return request({
		url: "/roomManage/config",
		method: "get",
		headers: {
			timeout: 2000
		}
	});
}

/**
 * 获取域名
 * @returns
 */
export function reqDomainList() {
	return request({
		url: "/roomManage/home/room/domain_list",
		method: "get",
		headers: {
			timeout: 2000
		}
	});
}

//验证码
export function reqCaptcha() {
	return request<CaptchaMo>({
		url: "/roomManage/captcha",
		method: "get"
	});
}

//登录
export function reqLogin(data: Record<string, any>) {
	return request<LoginMo>({
		url: "/roomManage/login",
		method: "post",
		data
	});
}

// 获取登录验证码类型
export function reqAuthType(params: Record<string, any>) {
	return request<{
		AuthType: 1 | 0;
	}>({
		url: "/roomManage/auth/type",
		method: "get",
		params
	});
}
